<?php

namespace app\common\func;

use app\common\model\AppMenu;

class Menu {

    public static function getMenu($type = 1){
        return AppMenu::where(["type" => $type,"status" => 1])->order("sorts asc,id desc")->select();
    }

    public static function getData(){
        return AppMenu::where(["type" => 2,"status" => 1])->order("sorts asc,id desc")->select();
    }
}
